#include <bits/stdc++.h>
using namespace std;
long long n, m, a[1050000], b[1100], bb, c[30], i, j, z, y;
int main() {
  for (i = 2; i <= 1024; i++)
    if (a[i] == 0) {
      b[bb] = i;
      bb++;
      for (j = i * i; j <= 1048576; j += i) a[j] = 1;
    }
  for (c[0] = 1, i = 1; i <= 20; i++) c[i] = c[i - 1] * i;
  for (z = 1; scanf("%lld", &n) != EOF; m = 0, z = 1) {
    for (i = 0; i < bb; i++) {
      for (y = 0; n % b[i] == 0;) {
        m++;
        n /= b[i];
        y++;
      }
      z *= c[y];
    }
    if (n != 1) m++;
    z = c[m] / z;
    printf("%lld %lld\n", m, z);
  }
  return 0;
}
